#! /bin/sh

/bin/mount -a
for initscript in /etc/init.d/S[0-9][0-9]*
do
	if [ -x $initscript ] ;
	then
		$initscript
	fi
done

#devmem 0x112f0008 16 0x0681
#devmem 0x112f000c 16 0x0581
#devmem 0x112f0010 16 0x0581
#devmem 0x112f0014 16 0x0581
#devmem 0x112f0018 16 0x0581
#devmem 0x112f001c 16 0x0581

#devmem 0x10ff0034 32 0x500
#devmem 0x10ff0030 32 0x500
#devmem 0x10ff0038 32 0x500

#sleep 0.05

# load wifi driver
##insmod /app/komod/plat_soc.ko
##sleep 0.01
##insmod /app/komod/wifi_soc.ko

# config loacl static ip
##ifconfig wlan0 192.168.1.100 netmask 255.255.255.0
##route add default gw 192.168.1.1

##sleep 0.01
# config sta ip range
##udhcpd /app/udhcpd.conf

##sleep 0.02
# statrt hostapd
##/app/wifi_ws73/hostapd /app/wifi_ws73/hostapd.conf &